import request from "@/utils/request";

// 获得技师等级规则分页
export function getStoreLvRulePageApi(query) {
  return request({
    url: "/store/th-lv-ru/page",
    method: "get",
    params: query,
  });
}

// 创建技师等级规则
export function AddStoreLvRulePageApi(data) {
  return request({
    url: "/store/th-lv-ru/create",
    method: "post",
    data: data,
  });
}

// 更新技师等级规则
export function UpdateStoreLvRulePageApi(data) {
  return request({
    url: "/store/th-lv-ru/update",
    method: "put",
    data: data,
  });
}

// 获得技师等级规则
export function getStoreLvRulePageInfoApi(query) {
  return request({
    url: "/store/th-lv-ru/get",
    method: "get",
    params: query,
  });
}

// 删除技师等级规则
export function DelStoreLvRulePageApi(query) {
  return request({
    url: "/store/th-lv-ru/delete",
    method: "delete",
    params: query,
  });
}

// 获得技师积分分页
export function getPointPageApi(query) {
  return request({
    url: "/store/th-point/page",
    method: "get",
    params: query,
  });
}

// 获得积分明细
export function getPointRecordPageApi(query) {
  return request({
    url: "/store/th-point-record/page",
    method: "get",
    params: query,
  });
}
